#include "tcpserver.hpp"


void UsePage(char* argv[])
{
    std::cout << "\n\r" << argv[0] <<"  [port] " << std::endl << std::endl;
}

int main(int argc ,char* argv[])
{
    if(argc != 2)
    {
        UsePage(argv);
        exit(0);
    }
    
    uint16_t port = std::stoi(argv[1]);

    Tcpserver ts(port);

    ts.Init();
    ts.Running();

    return 0;
}